package com.itheima.dao;


import com.github.pagehelper.Page;
import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberDao {

    Member findByTelephone(String telephone);

    void add(Member member);

    Member findById(Integer id);

    Integer findMemberCountDate(String date);

    List<Map<String,Object>> findMemberCount();

    Long findMemberCountForToday();

    Long findMemberTotalCount();

    Long findMemberCountForWeek();

    Long findMemberCountForMonth();

    public Page<Member> selectByCondition(String queryString);

    public void edit(Member member);

    public void deleteById(Integer id);

    public List<Member> findAll();

    public Integer findMemberCountBeforeDate(String date);
}
